﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace Xqsys.DAL
{
    public class ProgramLssue
    {
        /// <summary>
        /// 发布新的项目
        /// </summary>
        /// <param name="programLssue"></param>
        /// <returns>bool 成功与否</returns>
        public bool AddProgramLssue(MODEL.ProgramLssue programLssue)
        {
            SqlParameter[] param = new SqlParameter[]
            {
                new SqlParameter("@Lssueid",programLssue.ProgramID),
                new SqlParameter("@title",programLssue.Title),
                new SqlParameter("@content",programLssue.Content),
                new SqlParameter("@typeID",programLssue.TypeID),
                new SqlParameter("@intime",programLssue.Intime),
                new SqlParameter("@effTime",programLssue.Efftime),
                new SqlParameter("@state",programLssue.State),
                new SqlParameter("@phone",programLssue.Phone),
                new SqlParameter("@userID",programLssue.UserID),
                new SqlParameter("@email",programLssue.Email),
                new SqlParameter("@address",programLssue.Address)
            };
            return COM.SqlHelper.ExecuteNonQuery("sp_AddProgramLssue", param);
        }
    }
}
